package model.order;


import model.character.RestCompany;
import model.character.RestCustomer;
import model.character.RestUserAddress;
import model.dictionary.RestCity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2015/12/29.
 */
public class RestOrder{

    private Integer id;
    private String orderNumber;
    private RestCustomer customer;
    private RestStatus status;
    private Date createDate;
    private Date payDate;
    private Float lgt;
    private Float lat;
    private String address;
    private List<RestOrderProduct> products;

    private Date appointment;
    private Integer type;
    private RestCity city;
    private Integer reassignment;
    private Date arrivalTime;   //师傅已出发时间
    private Date startTime;     //商户点击开始服务的时间
    private Date completeTime;  //整个服务完成时间，用户点击了服务完成按钮。
    private Date confirmTime;            //已接单时间

    private BigDecimal orignprice;
    private BigDecimal finalprice;
    private RestCompany company;

    private Integer enable;

    private String remark;

    private RestUserAddress userAddress;
    private Integer outArrange;

    private List<RestOrderWorker> orderWorkers;
    private List<RestOrderCar> orderCars;

    private String records;
    private Integer isGet;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public RestCustomer getCustomer() {
        return customer;
    }

    public void setCustomer(RestCustomer customer) {
        this.customer = customer;
    }

    public RestStatus getStatus() {
        return status;
    }

    public void setStatus(RestStatus status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public Float getLgt() {
        return lgt;
    }

    public void setLgt(Float lgt) {
        this.lgt = lgt;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<RestOrderProduct> getProducts() {
        return products;
    }

    public void setProducts(List<RestOrderProduct> products) {
        this.products = products;
    }

    public List<RestOrderWorker> getOrderWorkers() {
        return orderWorkers;
    }

    public void setOrderWorkers(List<RestOrderWorker> orderWorkers) {
        this.orderWorkers = orderWorkers;
    }

    public List<RestOrderCar> getOrderCars() {
        return orderCars;
    }

    public void setOrderCars(List<RestOrderCar> orderCars) {
        this.orderCars = orderCars;
    }

    public Date getAppointment() {
        return appointment;
    }

    public void setAppointment(Date appointment) {
        this.appointment = appointment;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public RestCity getCity() {
        return city;
    }

    public void setCity(RestCity city) {
        this.city = city;
    }

    public Integer getReassignment() {
        return reassignment;
    }

    public void setReassignment(Integer reassignment) {
        this.reassignment = reassignment;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public BigDecimal getOrignprice() {
        return orignprice;
    }

    public void setOrignprice(BigDecimal orignprice) {
        this.orignprice = orignprice;
    }

    public BigDecimal getFinalprice() {
        return finalprice;
    }

    public void setFinalprice(BigDecimal finalprice) {
        this.finalprice = finalprice;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public RestCompany getCompany() {
        return company;
    }

    public void setCompany(RestCompany company) {
        this.company = company;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public RestUserAddress getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(RestUserAddress userAddress) {
        this.userAddress = userAddress;
    }

    public String getRecords() {
        return records;
    }

    public void setRecords(String records) {
        this.records = records;
    }

    public Integer getOutArrange() {
        return outArrange;
    }

    public void setOutArrange(Integer outArrange) {
        this.outArrange = outArrange;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Integer getIsGet() {
        return isGet;
    }

    public void setIsGet(Integer isGet) {
        this.isGet = isGet;
    }

    public RestOrder() {
    }


}
